package com.zyk.scaffold.user.service;

import com.zyk.scaffold.user.controller.tenant.TenantCreatRequest;
import com.zyk.scaffold.user.controller.tenant.TenantResponse;
import com.zyk.scaffold.user.controller.tenant.TenantUpdateRequest;
import com.zyk.scaffold.user.entity.Tenant;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 租户表 服务类
 * </p>
 *
 * @author zhouyk
 * @since 2022-11-04
 */
public interface TenantService extends IService<Tenant> {

    List<Tenant> getTenantInfos();

    Boolean create(TenantCreatRequest tenantCreatInput, Long userId);

    Boolean update(TenantUpdateRequest tenantUpdateInput, Long userId);

    List<TenantResponse> listInofs();

    List<Tenant> getTenantInfosByType(Integer type);
}
